home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 44
/
Aminet 44 (2001)(GTI - Schatztruhe)[!][Aug 2001].iso
/
Aminet
/
dev
/
moni
/
HunkFunc.readme
< prev
next >
Wrap
Text File
|
2001-07-04
|
5KB
|
123 lines
Short: V1.14 display executable file structure
Author: stoecker@epost.de (Dirk Stoecker)
Uploader: stoecker@epost.de (Dirk Stoecker)
Version: 1.14
Type: dev/moni
This program allows you to display information about the structure of an
Amiga executable file (or a link object). HunkFunc requires OS2.0 for work.
The first version of this program is made with help of HunkFunk utility
made by Olaf Barthel. But as Olaf's utility misses a lot of hunks and
other information, I made my own tool. This version knows a lot more
possible configurations and is shorter, as it uses Amiga functions instead
of ANSI-C.
Know hunk types are: HUNK_UNIT, HUNK_NAME, HUNK_CODE, HUNK_DATA, HUNK_BSS,
HUNK_(ABS)RELOC32, HUNK_(REL)RELOC16, HUNK_(REL)RELOC8, HUNK_EXT, HUNK_SYMBOL,
HUNK_DEBUG, HUNK_END, HUNK_HEADER, HUNK_OVERLAY, HUNK_BREAK,
HUNK_DREL32, HUNK_DREL16, HUNK_DREL8, HUNK_LIB, HUNK_INDEX,
HUNK_RELOC32SHORT, HUNK_RELRELOC32, HUNK_ABSRELOC16, HUNK_PPC_CODE,
HUNK_RELRELOC26.
The File has following argument line:
"FILE/M/A,SREL=SHOWRELOC/S,SSYM=SHOWSYMBOL/S,SEXT=SHOWEXTERN/S,
SEREF=SHOWEXTERNREF/S,SOVT=SHOWOVERLAYTABLE/S,STATS/S".
FILE You must pass at least one file name, but may pass a lot more.
Patterns are not supported.
SHOWRELOC displays all reloc entries (there may be really much of them!)
SHOWSYMBOL displays symbol names of HUNK_SYMBOL
SHOWEXTERN displays definitions of HUNK_EXT
SHOWEX-REF displays references of HUNK_EXT
SHOWOVERL. display data of overlay table
STATS show short statistics about file
Example output:
File 'C:AddDataTypes':
HUNK_HEADER
Numhunks = 2 (0 to 1)
Hunk 000 = 5560 ($0015B8) Bytes
Hunk 001 = 160 ($0000A0) Bytes
HUNK_CODE 5560 ($0015B8) Bytes
HUNK_RELOC32
Summary 5 entries to hunk 1
HUNK_END
HUNK_DATA 160 ($0000A0) Bytes
HUNK_RELOC32
Summary 14 entries to hunk 0
HUNK_END
- First line shows program name.
- HUNK_HEADER is the first hunk of an executable and lists all the hunks.
There may be additionally comments like CHIP, FAST, ADVISORY or MEMTYPE.
- HUNK_CODE and HUNK_DATA store information.
- HUNK_BSS store memory space, which is filled with 0 on startup.
- HUNK_RELOC32 (and other types) hold relocation information.
- HUNK_END ends an hunk entry.
- In HUNK_CODE, HUNK_DATA and HUNK_BSS the memory flags may be repeated
in first or second longword. The flags is displayed normally when in
second longword (size) and preceeded by a '_' (e.g. _CHIP), when in
first longword (hunk type).
- HUNK_DREL32EXE is in real a HUNK_RELOC32SHORT which uses wrong ID due
to a bug in OS V37.
A lot more information about executable or object file format can be found
in:
The Amiga Guru Book
©1989,1993 by Ralph Babel
Taunusstein 1993
If HunkFunc prints a line like "HUNK_??? ($xxxx) - Aborting!", please
contact me and send an example file (if the file is a correct one).
Use this tool as you want, but WITHOUT ANY WARRANTY!
Contact me at:
*********************************************************************
* snail-mail: * e-mail: *
* Dirk Stoecker * stoecker@epost.de *
* Geschwister-Scholl-Str. 10 * dirk@dstoecker.de *
* 01877 Bischofswerda * world wide web: *
* GERMANY * http://www.dstoecker.de/ *
* phone: * pgp key: *
* GERMANY +49 (0)3594/706666 * get from WWW pages or keyservers *
*********************************************************************
Following is my PGP signature for the corresponding LhA-File.
Use ' pgpv HunkFunc.readme -o HunkFunc.lha ' to check it.
Key fingerprint: B9 F2 3A 1A 29 02 75 16 6A C6 5B 7D 5E F6 16 CF.
All my releases after April 2001 have a PGP signature with this key.
Be alarmed if signature is missing or wrong.
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: qVIx+1u4qWmwAC5W9lxdPkNhMi2P6EjF
iQCVAwUAOzRwr7OTsAT/iOY9AQFbRAP9EQS6t8ZwUio33mdcujxZEbu6L+9+tEQV
/cMq95jTdwRQjnvMF+509K04mRoSCG7ClzsJmsAB0VM/CtULm7loqlmLjW4LOuej
SgRRRaNmDqn7El8UglXYXYXGkZZsfGPKkkwP6p19/IyB2mSib6nzukhoSdz4r4OQ
XBcJSpgOy18=
=6zGt
-----END PGP SIGNATURE-----
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
2146 1519 29.2% 23-Jun-01 12:33:34 HunkFunc.info
8288 3762 54.6% 23-Jun-01 12:33:34 +HunkFunc
3674 1640 55.3% 23-Jun-01 12:33:34 +HunkFunc.readme
17076 4868 71.4% 23-Jun-01 12:33:34 +HunkFunc.c
2188 805 63.2% 23-Jun-01 12:33:34 +SDI_ASM_STD_functions.lib
5603 1970 64.8% 23-Jun-01 12:33:34 +SDI_ASM_STD_protos.h
1257 550 56.2% 23-Jun-01 12:33:34 +SDI_version.h
411 260 36.7% 23-Jun-01 12:33:34 +SMakeFile
-------- ------- ----- --------- --------
40643 15374 62.1% 26-Jun-101 01:43:50 8 files